package cn.com.anysdk.starter.config.redis;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 阿里云Redis配置属性
 * 用于Spring Boot环境下的阿里云Redis配置绑定
 */
@ConfigurationProperties(prefix = "anysdk.redis.aliyun")
public class AliyunRedisProperties {
    
    /** 是否启用阿里云Redis */
    private boolean enabled = false;
    
    /** Redis连接端点 */
    private String endpoint;
    
    /** Redis端口 */
    private int port = 6379;
    
    /** 访问密钥ID */
    private String accessKeyId;
    
    /** 访问密钥Secret */
    private String accessKeySecret;
    
    /** 安全令牌（临时凭证） */
    private String securityToken;
    
    /** Redis密码 */
    private String password;
    
    /** Redis数据库索引 */
    private int database = 0;
    
    // Getter and Setter methods
    
    public boolean isEnabled() {
        return enabled;
    }
    
    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }
    
    public String getEndpoint() {
        return endpoint;
    }
    
    public void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }
    
    public int getPort() {
        return port;
    }
    
    public void setPort(int port) {
        this.port = port;
    }
    
    public String getAccessKeyId() {
        return accessKeyId;
    }
    
    public void setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
    }
    
    public String getAccessKeySecret() {
        return accessKeySecret;
    }
    
    public void setAccessKeySecret(String accessKeySecret) {
        this.accessKeySecret = accessKeySecret;
    }
    
    public String getSecurityToken() {
        return securityToken;
    }
    
    public void setSecurityToken(String securityToken) {
        this.securityToken = securityToken;
    }
    
    public String getPassword() {
        return password;
    }
    
    public void setPassword(String password) {
        this.password = password;
    }
    
    public int getDatabase() {
        return database;
    }
    
    public void setDatabase(int database) {
        this.database = database;
   }
}